<%--
  User: Aleksey
  Date: 03.03.2009
  Time: 2:37:42
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<html>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<f:view locale="#{localeManager.locale}">
    <f:loadBundle var="msgs" basename="messages"/>
    <head>
        <title><h:outputText value="#{msgs['title']}"/></title>
        <link href="olga.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <h:form id="formcontest">
            <%@include file="logoPanel.jspf"%>
            <%@include file="navigationPanel.jspf"%>
            <h1>Problemset:</h1>
            <h:dataTable value="#{data.problems}" var="curproblem">
                <h:column>
                    <h:outputText value="#{curproblem.letterWithPoint}"/>
                </h:column>
                <h:column>
                    <h:commandLink action="#{problem.viewProblem}" value="#{curproblem.name}">
                        <f:param name="problem" value="#{curproblem.id}"/>
                        <f:param name="index" value="#{curproblem.index}"/>
                    </h:commandLink>
                    <h:outputText value=" ("/>
                    <h:commandLink action="#{problem.viewProblem}" value="new tab" target="_blank">
                        <f:param name="problem" value="#{curproblem.id}"/>
                        <f:param name="index" value="#{curproblem.index}"/>
                    </h:commandLink>
                    <h:outputText value=")"/>
                </h:column>
                <h:column>
                    <h:commandLink action="#{data.submitSpecificProblem}" value="Submit">
                        <f:param name="problem" value="#{curproblem.id}"/>
                    </h:commandLink>
                </h:column>
            </h:dataTable>
            <h3><h:commandLink action="submissions" value="View all submissions"/></h3>
            <h3><h:commandLink action="monitor" value="View contest monitor"/></h3>
        </h:form>
    </body>
</f:view>
</html>